<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const submit = () => {
  router.replace('/')
}
</script>
<template name="notfound">
  <div class="not-found">哎呀，出错了</div>
  <div class="v-btn" @click="submit">返回首页</div>
</template>
<style lang="scss" scoped>
.not-found {
  text-align: center;
  padding: 170px 0 140px 0;
  color: #797979;
  font-size: 30px;
}
.v-btn {
  width: 200px;
  height: 40px;
  line-height: 40px;
  margin: 0 auto;
  font-size: 16px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  background: #0085f4;
}
</style>
